package com.sghd.candy.module.fight.service;

import com.sghd.candy.module.fight.manager.LevelInfo;
import com.sghd.candy.module.fight.manager.LevelInfoManager;
import com.sghd.candy.module.player.manager.Player;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Allen
 * @date 2018/12/24
 */
@Service
public class LevelInfoService {
    @Autowired
    private LevelInfoManager levelInfoManager;

    public LevelInfo getLevelInfo(Player player) {
        return levelInfoManager.getLevelInfo(player.getPlayerId());
    }
}
